<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>点赞</title>
<!-- Tell the browser to be responsive to screen width -->
<meta
	content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
	name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="${request.contextPath}/admin/bower_components/bootstrap/dist/css/bootstrap.min.css">
		
</head>


<body>

	<input style="center" type="button"  value="赞" class="btn btn-primary" role="button" onclick="btnLike()">
	<span id="haha"></span>
</input>
	
	<script
	src="${request.contextPath}/admin/bower_components/jquery/dist/jquery.min.js"></script>



<script>
var a=$("#haha")
	function btnLike(){
		 $.post("${request.contextPath}/api/favorite",function(date){
			 a.html(date)
		 });
	}
</script>
</body>

</html>
